<?php
/**
 * Created by PhpStorm.
 * User: jimmyhsu
 * Date: 2016/9/28
 * Time: 下午5:22
 */
//改成你本机测试建立的mysql数据库
$dbhost = "127.0.0.1";
$dbuser = "root"; //我的用户名
$dbpass = "aB82726221"; //我的密码
$dbname = "daowei"; //我的mysql库名
$cn = mysql_connect($dbhost,$dbuser,$dbpass) or die("connect error");
mysql_select_db($dbname)or die("db error");
mysql_query("set names 'utf8'");
?>